<style>
.btnplus {height:12pt; width:12pt; margin:0; border:1px; background:#6363A6; color:white; font:10pt Tahoma;cursor: pointer;}
.btnmin {height:12pt; width:12pt; margin:0; border:1px; background:#964A6E; color:white; font:10pt Tahoma;cursor: pointer;}
.btnchoice {
	padding: 2pt 2pt 2pt 2pt;
	border: 1pt solid #aaa;
	cursor: pointer;
}
.btnchoiced {
	padding: 2pt 2pt 2pt 2pt;
	border: 1px solid Lime;
	background-color: Green;
	color: white;
}
</style>
<table bgcolor=#CFCFFF border=0 cellpadding=0 cellspacing=1 width=930>
<tr><td>
<table class=table0 width="100%" border=0 cellpadding=0 cellspacing=0>
<tr>
  <td class=title0>
  <span style="float: left">连码&nbsp;&nbsp;-（五不中）&nbsp;&nbsp;操盘室&#12288;{round}期 {open}&#12288;&#12288;{orders}</span>
  <span style="float: right">[ <a href="op.php?op=admin&fp=now1">特码</a>｜
  <a href="op.php?op=admin&fp=now1_1">合肖</a>｜
  <a href="op.php?op=admin&fp=now2">正码</a>｜
  <a href="op.php?op=admin&fp=now4&norder=1">正码特</a>｜
  <a href="op.php?op=admin&fp=now3">一肖尾数</a>｜连码｜
  <a href="op.php?op=admin&fp=now6">连肖</a>
  ｜<a href="op.php?op=admin&fp=now7">连尾</a>]
  </span>
  </td>
</tr>
</table>
</table>

<br>
<table width="69%" border=0 cellpadding=0 cellspacing=0>
<tr><td width="62%">
<span id="hktime"></span>，<span id="countdownstr"></span>
</td><td width="22%">
</td></tr>
</table>

<table cellSpacing="1" cellPadding="3" width="930" border="0" bgcolor="#6A99A6">
  <tr bgcolor="#C0D6EB">
    <td width="100%" align="center"><b>五不中</b></td>
    <table id="table15" cellSpacing="1" cellPadding="0" border="0" width="930">
      <tr>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
      <td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">号码</font></div>
  		</td>
  		<td bgColor="#5a79c6">
  		<div align="center">
  			<font color="#ffffff">赔率</font></div>
  		</td>
  		</tr>
      {rate_list}
    </table>
  </tr>
<br>
<tr>
<td width="57%">快选 
<span id=btn011 class=btnchoice onclick="chsbtn(11)">红</span>
<span id=btn012 class=btnchoice onclick="chsbtn(12)">蓝</span>
<span id=btn013 class=btnchoice onclick="chsbtn(13)">绿</span>
<span id=btn014 class=btnchoice onclick="chsbtn(14)">单</span>
<span id=btn015 class=btnchoice onclick="chsbtn(15)">双</span>
<span id=btn016 class=btnchoice onclick="chsbtn(16)">大</span>
<span id=btn017 class=btnchoice onclick="chsbtn(17)">小</span>
<span id=btn018 class=btnchoice onclick="chsbtn(18)">合单</span>
<span id=btn019 class=btnchoice onclick="chsbtn(19)">合双</span>
<span id=btn022 class=btnchoice onclick="chsbtn(22)">家禽</span>
<span id=btn023 class=btnchoice onclick="chsbtn(23)">野兽</span></td>
<td width="43%">&#12288;&#12288;增量 
<span id=btn01 class=btnchoice onclick="chsbtn(1)">1</span>
<span id=btn005 class=btnchoice onclick="chsbtn(0.5)">0.5</span>
<span id=btn004 class=btnchoice onclick="chsbtn(0.4)">0.4</span>
<span id=btn003 class=btnchoice onclick="chsbtn(0.3)">0.3</span>
<span id=btn002 class=btnchoice onclick="chsbtn(0.2)">0.2</span>
<span id=btn001 class=btnchoice onclick="chsbtn(0.1)">0.1</span>
<span id=btn0005 class=btnchoice onclick="chsbtn(0.05)">0.05</span>
<span id=btn0003 class=btnchoice onclick="chsbtn(0.03)">0.03</span>
<span id=btn0001 class=btnchoice onclick="chsbtn(0.01)">0.01</span>
&#12288; 
<input type=button onclick="btnratediff(-1)" value=- class=btnmin>&#12288;
<input type=button onclick="btnratediff(1)" value=+ class=btnplus></td>
</tr>
<br><br>
<tr bgcolor="#FFFFFF">
  <td>
    <table border="0" width="100%" cellspacing="0" cellpadding="0">
      <tr valign="top" width="100%">
        <td width="150" bgcolor="#FFFFFF">{list0}</td>
	    <td width="150" bgcolor="#FFFFFF">{list1}</td>
	    <td width="150" bgcolor="#FFFFFF">{list2}</td>
	    <td width="150" bgcolor="#FFFFFF">{list3}</td>
	    <td width="150" bgcolor="#FFFFFF">{list4}</td>
	    <td width="150" bgcolor="#FFFFFF">{list5}</td>
    </tr>
  </table>
  </td>
</tr>
  
</table>
{totall}
<p>
<input type=button value="重新整理" onclick='location.reload()'>&#12288;
<input type=button value="回上一页" onclick='goto_now5()'>
</p>


<script>
var _id = {lotto_id};
if (window.XMLHttpRequest)
{// code for all new browsers
    var XH1 = new XMLHttpRequest();
}
else if (window.ActiveXObject)
{
  var XH1 = new ActiveXObject("Microsoft.XMLHTTP");
} else 
  alert("Your browser does not support XMLHTTP.");
var now = new Date(1000 * {phptime});
var btn0_choice = 11;
var btn1_choice = 0.1;
var timer_id;

chsbtn({btn0});
chsbtn({btn1});

nowdate();
function nowdate()
{
    document.all.hktime.innerHTML = "香港时间：<b>"+now.getDate()+"日"+d2(now.getHours())+":"+d2(now.getMinutes())+":"+d2(now.getSeconds()+"</b>");
    now.setTime(now.getTime() + 1000);
    setTimeout("nowdate()",1000);
}

var timestap = {timestap};
function countdown()
{
    if (timestap >= 0) {
        timediff = timestap;
        days = Math.floor(timediff / (60 * 60 * 24)); 
    	timediff -= days * (60 * 60 * 24);
    	hours = Math.floor(timediff / (60 * 60));
    	timediff -= hours * (60 * 60);	
    	mins = Math.floor(timediff / (60));
    	timediff -= mins * (60);	
    	secs = Math.floor(timediff);
        
        str = "距离截止下注时间还有 ";
        if (days > 0 ) str += "<b>" + days + "</b> 天 ";
        if (hours > 0) str += "<b>" + hours + "</b> 小时 ";
        if (mins > 0) str += "<b>" + mins + "</b> 分钟 ";
        str += "<b>" + secs + "</b> 秒 ";
        countdownstr.innerHTML =  str;
        setTimeout("countdown()",1000)
        timestap-=1;
        if (timestap==0) {
            location.reload();
        }
    } else {
        countdownstr.innerHTML =  "<font color=red><b>已经截止下注！</b></font>";
    }
}
countdown();

function ratediff(btype, num, rate)
{
    XH1.open("POST", "op.php?op=admin&fp=ratediff&id="+_id+"&bettype="+btype+"&number="+num+"&rate="+(rate<0 ? btn1_choice*-1 : btn1_choice)+"&pagename=0&method=0",false);
    try{XH1.send("");}catch(E){}
    setTimeout("location.href='op.php?op=admin&fp=now5_29&lotto_id=_id&split={split_id}&disk={disk_id}&btn0="+btn0_choice+"&btn1="+btn1_choice+"'",10);
}

function goto_now5(){
    setTimeout("location.href='op.php?op=admin&fp=now5'",0);
}
function chsbtn(t)
{
	if (t > 10) {
		document.all.btn011.className = "btnchoice";
		document.all.btn012.className = "btnchoice";
		document.all.btn013.className = "btnchoice";
		document.all.btn014.className = "btnchoice";
		document.all.btn015.className = "btnchoice";
		document.all.btn016.className = "btnchoice";
		document.all.btn017.className = "btnchoice";
		document.all.btn018.className = "btnchoice";
		document.all.btn019.className = "btnchoice";
		document.all.btn022.className = "btnchoice";
		document.all.btn023.className = "btnchoice";
		//event.srcElement.className = "btnchoiced";
		document.getElementById("btn0"+t).className = "btnchoiced";  
		btn0_choice = t;
	} else {
		document.all.btn01.className = "btnchoice";
		document.all.btn005.className = "btnchoice";
		document.all.btn004.className = "btnchoice";
		document.all.btn003.className = "btnchoice";
		document.all.btn002.className = "btnchoice";
		document.all.btn001.className = "btnchoice";
		document.all.btn0005.className = "btnchoice";
		document.all.btn0003.className = "btnchoice";
		document.all.btn0001.className = "btnchoice";
		//event.srcElement.className = "btnchoiced";
		if (t<0.1)
		  document.getElementById("btn000"+(t*100)).className = "btnchoiced";
		else if(t<1)
		  document.getElementById("btn00"+(t*10)).className = "btnchoiced";
    else document.getElementById("btn0"+t).className = "btnchoiced";		
		btn1_choice = t;
	}
}

function btnratediff(t)
{
	// window.status = "Cange Rate....";
	if (timer_id) clearTimeout(timer_id);
	var uu = "op.php?op=admin&fp=ratediff&id="+_id+"&bettype=D&number="+btn0_choice+"&rate="+(btn1_choice*t)+"&pagename=0&method=1";
  //window.open(uu);//debug用
	//return false;//debug
	XH1.open("POST", uu, false); 
  try{XH1.send("");}catch(E){}
  setTimeout("location.href='op.php?op=admin&fp=now5_29&lotto_id=_id&split={split_id}&disk={disk_id}&btn0="+btn0_choice+"&btn1="+btn1_choice+"'",10);
}

</script>